package com.home.web.gwt.server.com.home.dao.mock;

import com.home.web.gwt.server.com.home.dao.ContactDao;
import com.home.web.gwt.shared.Contact;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: volyn
 * Date: 04.02.12
 * Time: 15:19
 * To change this template use File | Settings | File Templates.
 */
public class ContactDaoMock implements ContactDao{
    @Override
    public List<Contact> getContactList() {
        List<Contact> res = new ArrayList<Contact>(CONTACT_COUNT);
        Contact contact;
        for(int i =0; i< CONTACT_COUNT; i++){
            contact = new Contact("name"+i,"companyName"+i,"1111"+i,"mail"+i+"@mail.com");
            res.add(contact);
        }
        return res;
    }
}
